﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="admin_pdfgl_scpdf.aspx.cs" Inherits="admin_pdfgl_scpdf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>pdf管理_添加pdf</title>
    
    <script type="text/javascript" language="javascript" src="admin/js/jquery-1.3.2.min.js"></script>
    <link href="admin/css/style_update.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript" language="javascript">
     
     //浏览按钮点击触发事件服务器读取上传文件
     function fileupload_click()
     {    
        var obj = document.getElementById("<%=AddFile.ClientID %>");    
        if(obj)
          {
//            alert(obj.id+"2");
            obj.click();
           }
      }
           //双击文件删除需要上传的错误文件
     function filedelete_click()
     {    
        var obj = document.getElementById("<%=DelFile.ClientID %>");    
        if(obj)
          {
//            alert(obj.id+"2");
            obj.click();
           }
      }

       //警告消息
     function warning(msg)
     {
        $("#txt_warning").html(msg);
//        alert(msg);
        $("#div_warning").show();	 
     } 
     
    function confirmdelete()
    {    
        var obj = document.getElementById("Cb_Del");    
        if(confirm('是否清空文件夹，删除所有文件?'))
        {
            obj.checked=true;
        }
        else
        {
            obj.checked=false;
        }
    }
    
    function CheckBox()
    {
        var obj = document.getElementById("Cb_Del");        
        if(obj.checked==true)
        {
            confirmdelete()
        }
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div style=" display:none">
        
        
        <asp:Button ID="AddFile" runat="server" OnClick="AddFile_Click" Text="添加文件" />
        <asp:Button ID="DelFile" runat="server" OnClick="DelFile_Click" Text="删除文件" />
        <asp:CheckBox ID="Cb_Del" runat="server" onclick="CheckBox();" />上传文件的同时删除所在文件夹的全部文件
                     <br /><br />
    </div>
    
    <div class="right_main">
    
        <div class="location">
            <div class="kou"></div>
           
             <div class="koufont">系统管理</div>
            <a href="#" class="one ">pdf管理 ></a>
            <a href="#" class="two">pdf文件上传</a>
           
        </div>
        <br />
        <%--class="info clear" --%>
        <div >

        	<div class="info_border clear">
                 <div class="title">
        	         <div class="right_tl1"></div> 
           	         <div class="right_tl2">本地pdf文件上传</div>	
                 </div>
                 <div class="text_table">
                    
                     选择上传的pdf文件：                      
                     <asp:FileUpload ID="FindFile" CssClass="input_text" runat="server" Height="23px" Width="300px"  onchange="fileupload_click();" />
                 </div>
                 <div class="title">
        	         <div class="right_tl1"></div> 
           	         <div class="right_tl2">选择上传文件分类</div>	
                 </div>
                 <div class="text_table">
           	         <div>
                     选择上传的文件分类：
                     <asp:DropDownList ID="DropDownList1" CssClass="input_text" runat="server" Height="23px" Width="300px" >
                         <asp:ListItem Value="kj">课件</asp:ListItem>
                         <asp:ListItem Value="xt">习题</asp:ListItem>
                         <asp:ListItem Value="wx">文献</asp:ListItem>
                         <asp:ListItem Value="bz">标准</asp:ListItem>
                         <asp:ListItem Value="jywz">教研文章</asp:ListItem>
                     </asp:DropDownList>
                     <asp:Button ID="Upload" CssClass="button_U" runat="server" OnClick="Upload_Click" Text="上传文件" />
                     </div>
                 </div>
                
                 
                 <div class="title">
        	         <div class="right_tl1"></div> 
           	         <div class="right_tl2">文件上传信息提示</div>	
                 </div>
                 
                 <div class="date_begin_last" >
      		         <div <%--style="right:100px"--%>>          	 
             	     <asp:ListBox ID="FileList" runat="server" CssClass="textarea_s" Height="100px" ondblclick ="filedelete_click();">
                     </asp:ListBox><em >待上传文件:</em>
                     <p>双击文件删除无需上传的冗余文件!</p>
                     </div>
                     
                     <div <%--style="right:100px"--%>>
                     <asp:ListBox ID="FileListupload" runat="server" CssClass="textarea_s" Height="100px" >
                     </asp:ListBox><em >已上传文件:</em>
                     </div>          
                 </div> 
                 <div class="text_table" id="data_table">
                     <div style="overflow-y :auto; width: 100%;">   
        		     <asp:GridView ID="GridView1" runat="server"   CssClass ="grid_s" ></asp:GridView> 
                     </div>
                      
                 </div>
                  <br />
                  <div id="div_warning" class="warning margin_div" style="display:none;">
                     <img alt="" src="admin/css/image/warning.jpg" width="21" height="23" /><span id="txt_warning"></span>
                 </div>
                 
	  		</div>
	  		
	  		
            
	    </div>
	 
    </div>
    </form>
</body>
</html>
